package com.yang.domain;

import lombok.Data;

/*
每个用户仅绑定一个角色
 */
@Data
public class UserRoles {
    private Long Id;
    private Long userId;
    private Integer roleId;

    public Long getId() {
        return Id;
    }

    public void setId(Long id) {
        Id = id;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Integer getRoleId() {
        return roleId;
    }

    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }

    @Override
    public String toString() {
        return "userRole{" +
                "Id=" + Id +
                ", userId=" + userId +
                ", roleId=" + roleId +
                '}';
    }
}
